home *** CD-ROM | disk | FTP | other *** search
- >As far as I know, there's a rule about structure alignment in C. It
- >says that things are aligned according to what's in the struct. For
- >example, a struct containing short ints is aligned to (at least) an
- >even address. The compiler makes this happen when it allocates
-
- That's true. However, there are also ABI rules, and on the ARM the ABI forces
- 32-bit alignment even for a structure in which all the elements are smaller
- than that. This is the sort of thing that people don't expect.
-
- (We've been through this a few weeks ago, actually.)
-
- p.
-
-
- unsubscribe: body of `unsubscribe linux-arm' to majordomo@vger.rutgers.edu
-
-